package com.atguigu.yygh.hosp.dao;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 孔德成
 * @slogan 致敬大师，致敬未来的你
 * @date 2021/9/3 9:54 上午
 * @desc 医院数据存放在 MongoDB 中
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    Hospital findHospitalByHoscode(String hoscode);


    List<Hospital> findHospitalByHosnameLike(String hosname);
}
